<template>
  <div>
    <h3>复习v-model---sync---{{ value }}----{{ msg }}</h3>
    <el-button @click="btn"> 点我value++ </el-button>
    <el-button @click="btn1"> 点我sync++ </el-button>
  </div>
</template>
<script>
export default {
  name: 'SyncCom',
  props: ['value', 'msg'],
  data () {
    return {

    }
  },
  computed: {
  },
  created () {
  },
  methods: {
    btn () {
      this.$emit('input', this.value + 1)
    },
    btn1 () {
      this.$emit('updata:msg', this.msg + 1)
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
